package com.caogen.cg_wl_kt.ui.login

import android.content.Intent
import android.os.Bundle
import com.caogen.cg_wl_kt.base.BaseViewModel
import com.caogen.cg_wl_kt.databinding.ActivityUpdatePwdBinding
import com.caogen.cg_wl_kt.utils.PrefUtils
import com.quansu.trailertiger.base.BActivity

class UpdatePwdActivity :BActivity<ActivityUpdatePwdBinding,BaseViewModel>(
    ActivityUpdatePwdBinding::inflate,
    BaseViewModel::class.java
){
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
    }

    override fun setListener() {
        super.setListener()
        binding.btnTest2.setOnClickListener {
            var intent = Intent();
            intent.putExtra(PrefUtils.RESULT_NAME,"yd_test2")
            intent.putExtra("test","yd test2")
            setResult(RESULT_OK,intent)
            finish()
        }
    }
}